import 'package:flutter/material.dart';

class TabBarItem extends StatelessWidget {
  final String defaultIconPath;
  final String selectedIconPath;
  final bool isSelected;
  const TabBarItem({
    super.key,
    required this.defaultIconPath,
    required this.selectedIconPath,
    required this.isSelected,
  });
  @override
  Widget build(BuildContext context) {
    return Image.asset(
      isSelected ? selectedIconPath : defaultIconPath,
      width: 18,
      height: 18,
      color: isSelected ? Theme.of(context).bottomNavigationBarTheme.selectedItemColor: Theme.of(context).bottomNavigationBarTheme.unselectedItemColor,
    );
  }
}